import { getRequest, postRequest,  putRequest, delRequest } from './instance';

export const getUserListApi = params => getRequest({url: '/user/list',  params})

export const addUserApi = data => postRequest({url: '/user/add',  data})

export const updateUserApi = data => putRequest({url: '/user/update',  data})

export const delUserApi = id => delRequest({url: `/user/del/${id}`})

export const getRoleOptionApi = params => getRequest({url: '/roles/list'})

export const getSexOptionApi = params => getRequest({url: '/roles/sex/options'})
